package com.ph.seata.account.service;

import com.ph.seata.account.dto.AccountDTO;
import com.ph.web.common.response.WrapperResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "ph-simple-account", path = "/")
public interface AccountFeignService {

    @RequestMapping(value = "/api/account/dec_account", method = RequestMethod.POST)
    WrapperResponse<Object> decAccount(@RequestBody AccountDTO accountDTO);

}
